package com.xhs.main.entity.yfb;

import java.util.ArrayList;
import java.util.List;

public class YfbGroupExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YfbGroupExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andYfbGroupIdIsNull() {
            addCriterion("yfb_group_id is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdIsNotNull() {
            addCriterion("yfb_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdEqualTo(Integer value) {
            addCriterion("yfb_group_id =", value, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdNotEqualTo(Integer value) {
            addCriterion("yfb_group_id <>", value, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdGreaterThan(Integer value) {
            addCriterion("yfb_group_id >", value, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("yfb_group_id >=", value, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdLessThan(Integer value) {
            addCriterion("yfb_group_id <", value, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("yfb_group_id <=", value, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdIn(List<Integer> values) {
            addCriterion("yfb_group_id in", values, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdNotIn(List<Integer> values) {
            addCriterion("yfb_group_id not in", values, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("yfb_group_id between", value1, value2, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("yfb_group_id not between", value1, value2, "yfbGroupId");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidIsNull() {
            addCriterion("yfb_group_parentid is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidIsNotNull() {
            addCriterion("yfb_group_parentid is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidEqualTo(Integer value) {
            addCriterion("yfb_group_parentid =", value, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidNotEqualTo(Integer value) {
            addCriterion("yfb_group_parentid <>", value, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidGreaterThan(Integer value) {
            addCriterion("yfb_group_parentid >", value, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("yfb_group_parentid >=", value, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidLessThan(Integer value) {
            addCriterion("yfb_group_parentid <", value, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidLessThanOrEqualTo(Integer value) {
            addCriterion("yfb_group_parentid <=", value, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidIn(List<Integer> values) {
            addCriterion("yfb_group_parentid in", values, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidNotIn(List<Integer> values) {
            addCriterion("yfb_group_parentid not in", values, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidBetween(Integer value1, Integer value2) {
            addCriterion("yfb_group_parentid between", value1, value2, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupParentidNotBetween(Integer value1, Integer value2) {
            addCriterion("yfb_group_parentid not between", value1, value2, "yfbGroupParentid");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameIsNull() {
            addCriterion("yfb_group_name is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameIsNotNull() {
            addCriterion("yfb_group_name is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameEqualTo(String value) {
            addCriterion("yfb_group_name =", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameNotEqualTo(String value) {
            addCriterion("yfb_group_name <>", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameGreaterThan(String value) {
            addCriterion("yfb_group_name >", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_group_name >=", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameLessThan(String value) {
            addCriterion("yfb_group_name <", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameLessThanOrEqualTo(String value) {
            addCriterion("yfb_group_name <=", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameLike(String value) {
            addCriterion("yfb_group_name like", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameNotLike(String value) {
            addCriterion("yfb_group_name not like", value, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameIn(List<String> values) {
            addCriterion("yfb_group_name in", values, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameNotIn(List<String> values) {
            addCriterion("yfb_group_name not in", values, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameBetween(String value1, String value2) {
            addCriterion("yfb_group_name between", value1, value2, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupNameNotBetween(String value1, String value2) {
            addCriterion("yfb_group_name not between", value1, value2, "yfbGroupName");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassIsNull() {
            addCriterion("yfb_group_class is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassIsNotNull() {
            addCriterion("yfb_group_class is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassEqualTo(String value) {
            addCriterion("yfb_group_class =", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassNotEqualTo(String value) {
            addCriterion("yfb_group_class <>", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassGreaterThan(String value) {
            addCriterion("yfb_group_class >", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_group_class >=", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassLessThan(String value) {
            addCriterion("yfb_group_class <", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassLessThanOrEqualTo(String value) {
            addCriterion("yfb_group_class <=", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassLike(String value) {
            addCriterion("yfb_group_class like", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassNotLike(String value) {
            addCriterion("yfb_group_class not like", value, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassIn(List<String> values) {
            addCriterion("yfb_group_class in", values, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassNotIn(List<String> values) {
            addCriterion("yfb_group_class not in", values, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassBetween(String value1, String value2) {
            addCriterion("yfb_group_class between", value1, value2, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupClassNotBetween(String value1, String value2) {
            addCriterion("yfb_group_class not between", value1, value2, "yfbGroupClass");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameIsNull() {
            addCriterion("yfb_group_peoplename is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameIsNotNull() {
            addCriterion("yfb_group_peoplename is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameEqualTo(String value) {
            addCriterion("yfb_group_peoplename =", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameNotEqualTo(String value) {
            addCriterion("yfb_group_peoplename <>", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameGreaterThan(String value) {
            addCriterion("yfb_group_peoplename >", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_group_peoplename >=", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameLessThan(String value) {
            addCriterion("yfb_group_peoplename <", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameLessThanOrEqualTo(String value) {
            addCriterion("yfb_group_peoplename <=", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameLike(String value) {
            addCriterion("yfb_group_peoplename like", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameNotLike(String value) {
            addCriterion("yfb_group_peoplename not like", value, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameIn(List<String> values) {
            addCriterion("yfb_group_peoplename in", values, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameNotIn(List<String> values) {
            addCriterion("yfb_group_peoplename not in", values, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameBetween(String value1, String value2) {
            addCriterion("yfb_group_peoplename between", value1, value2, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPeoplenameNotBetween(String value1, String value2) {
            addCriterion("yfb_group_peoplename not between", value1, value2, "yfbGroupPeoplename");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionIsNull() {
            addCriterion("yfb_group_position is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionIsNotNull() {
            addCriterion("yfb_group_position is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionEqualTo(String value) {
            addCriterion("yfb_group_position =", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionNotEqualTo(String value) {
            addCriterion("yfb_group_position <>", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionGreaterThan(String value) {
            addCriterion("yfb_group_position >", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_group_position >=", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionLessThan(String value) {
            addCriterion("yfb_group_position <", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionLessThanOrEqualTo(String value) {
            addCriterion("yfb_group_position <=", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionLike(String value) {
            addCriterion("yfb_group_position like", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionNotLike(String value) {
            addCriterion("yfb_group_position not like", value, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionIn(List<String> values) {
            addCriterion("yfb_group_position in", values, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionNotIn(List<String> values) {
            addCriterion("yfb_group_position not in", values, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionBetween(String value1, String value2) {
            addCriterion("yfb_group_position between", value1, value2, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupPositionNotBetween(String value1, String value2) {
            addCriterion("yfb_group_position not between", value1, value2, "yfbGroupPosition");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberIsNull() {
            addCriterion("yfb_group_usernumber is null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberIsNotNull() {
            addCriterion("yfb_group_usernumber is not null");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberEqualTo(String value) {
            addCriterion("yfb_group_usernumber =", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberNotEqualTo(String value) {
            addCriterion("yfb_group_usernumber <>", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberGreaterThan(String value) {
            addCriterion("yfb_group_usernumber >", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_group_usernumber >=", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberLessThan(String value) {
            addCriterion("yfb_group_usernumber <", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberLessThanOrEqualTo(String value) {
            addCriterion("yfb_group_usernumber <=", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberLike(String value) {
            addCriterion("yfb_group_usernumber like", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberNotLike(String value) {
            addCriterion("yfb_group_usernumber not like", value, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberIn(List<String> values) {
            addCriterion("yfb_group_usernumber in", values, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberNotIn(List<String> values) {
            addCriterion("yfb_group_usernumber not in", values, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberBetween(String value1, String value2) {
            addCriterion("yfb_group_usernumber between", value1, value2, "yfbGroupUsernumber");
            return (Criteria) this;
        }

        public Criteria andYfbGroupUsernumberNotBetween(String value1, String value2) {
            addCriterion("yfb_group_usernumber not between", value1, value2, "yfbGroupUsernumber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}